//
//  LJP_searchCollectionViewCell.m
//  God_is_a_Girl
//
//  Created by 李继鹏 on 15/9/28.
//  Copyright (c) 2015年 呸. All rights reserved.
//

#import "LJP_searchCollectionViewCell.h"

@implementation LJP_searchCollectionViewCell
-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super  initWithFrame:frame];
    if (self) {
        
        self.name = [[UILabel  alloc] init];
        [self.contentView  addSubview:self.name];
        self.name.textColor = [UIColor colorWithRed:0.178 green:0.839 blue:0.897 alpha:1.000];
        self.name.font = [UIFont systemFontOfSize:14];
        self.name.textAlignment = NSTextAlignmentCenter;
        
        
    }
    
    return self;
    
}
-(void)applyLayoutAttributes:(UICollectionViewLayoutAttributes *)layoutAttributes
{
    [super  applyLayoutAttributes:layoutAttributes];
    self.name.frame = CGRectMake(0, 0,self.frame.size.width, self.frame.size.height);
    self.name.layer.cornerRadius = 10;
    self.name.layer.masksToBounds = YES;
    self.name.layer.borderWidth = 1;
    self.name.layer.borderColor = [UIColor colorWithRed:0.178 green:0.839 blue:0.897 alpha:1.000].CGColor;
}
@end
